package com.mkb.dao.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.mkb.dao.GraphCaseDAO;
import com.mkb.entity.GraphCaseDO;
import com.mkb.mapper.GraphCaseMapper;

import java.util.List;
import java.util.Map;

@Repository
public class GraphCaseDAOImpl implements GraphCaseDAO{
	
	@Autowired
	private GraphCaseMapper graphCaseMapper;
	
	@Override
	public int deleteById(Long id) {
		return graphCaseMapper.deleteById(id);
	}

	@Override
	public int insert(GraphCaseDO record) {
		return graphCaseMapper.insert(record);
	}

	@Override
	public GraphCaseDO getById(Long id) {
		return graphCaseMapper.getById(id);
	}

	@Override
	public int update(GraphCaseDO record) {
		return graphCaseMapper.update(record);
	}

	@Override
	public int count(Map<String, Object> map) {
		return graphCaseMapper.count(map);
	}

	@Override
	public List<GraphCaseDO> queryList(Map<String, Object> params) {
		return graphCaseMapper.queryList(params);
	}
	
	@Override
        public int insertBatch(List<GraphCaseDO> dos) {
           return graphCaseMapper.insertBatch(dos);
        }

	@Override
	public int deleteByGraphId(Long graphId) {
		return graphCaseMapper.deleteByGraphId(graphId);
	}
}
